import $http from '@/config/requestConfig.js'

export const common = {
	getCaptcha(params, options) {
		options = {
			...options,
			isDomain: false
		}
		return $http.post('sms/captcha', params, options)
	},
	login({ phone, secret, mode }) {
		return $http.post(
			'login',
			{ phone, secret, mode },
			{ isDomain: false, isAuth: false, isLoad: true }
		)
	},
	// 轮询接口
	notice() {
		return $http.get('new/notice', {}, { isDomain: false, isPrompt: false });
	}
}
